Target Selection

Contents|Index|Previous|Next
Target selection

A target is an object file format. A given target may be supported for multiple architectures (see Architecture selection). A target selection may also have variations for different operating systems or architectures.

The command to list valid target values is objdump -i (the first column of output contains the relevant information).

Some sample values are: a.out-hp300bsd, ecoff-littlemips, a.out-sunos-big.

objdump target

Ways to specify:

- command line option: -b or--target
- environment variable GNUTARGET
- deduced from the input file

objcopy and strip input target

Ways to specify:

- command line options, -I, --input-target, -F, or --target
- environment variable, GNUTARGET
- deduced from the input file

objcopy and strip output target

Ways to specify:

- command line options, -O, --output-target, -F, or --target
- the input target (see objcopy and strip input Target)
- environment variable, GNUTARGET
- deduced from the input file

nm, size, and strings target

Ways to specify:

- command line option, --target
- environment variable GNUTARGET
- deduced from the input file

Linker input target

Ways to specify:

- command line option, -b or --format (see Command line options in Using ld)
- script command, TARGET (see Commands dealing with object file formats in Using ld)
- environment variable, GNUTARGET (see Environment variables in Using ld)
- the default target of the selected linker emulation (see Linker emulation selection).

Linker output target

Ways to specify:

- command line option, -oformat (see Command line options in Using ld)
- script command, OUTPUT_FORMAT (see Commands dealing with object file formats in Using ld)
- the linker input target (see Linker input target)

Top|Contents|Index|Previous|Next